package com.bsoft.ecommerce.conf;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

/**
 * @program: e-commerce-springclound
 * @description:
 * @author: hdh
 * @create: 2022:06:23 16:12
 */
//网关需要注册到容器中2
@Configuration
public class GatewayBeanConf {
    @Bean
    public RestTemplate restTemplate(){
        return  new RestTemplate();
    }
}
